package com.uplooking;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import com.uplooking.dao.UserDao;
import com.uplooking.pojo.User;
@SpringBootApplication
public class Application {
    
	 public static void main(String[] args) throws Exception {
		ApplicationContext context= SpringApplication.run(Application.class, args);
		
		UserDao udao=context.getBean(UserDao.class);
		
		User user=udao.findById(1);
	    
		System.out.println(user);
		System.out.println("-----");
	 }

}
